import api from './index'

export const authApi = {
  // 登录
  login(credentials) {
    return api.post('/api/auth/login', credentials)
  },
  
  // 注册
  register(userData) {
    return api.post('/api/auth/register', userData)
  }
}


